#pragma once
#include "Gate.h"
#include "NOT.h"
#include "AND.h"
//class NAND : public Gate, public NOT, public AND
class NAND : public NOT, public AND
{
private:
	NAND( const char* );
public:
	NAND(void);
	~NAND(void);
	void Calculation();
	Input* GetInputForLink();
	void LinkOutputWith(Input* input);
	Node* clone();
private:
	NOT *notGate;
	AND *andGate;
	
private:
	static NAND cInstance;
};
